//
//  F2DAtlas.h
//  Framework2D
//
//  Created by Jorge Lorenzon on 5/29/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

//martin - armar un test que cargue un atlas y una textura. Usar un picker para elegir que sprite dibujar

#import <Foundation/Foundation.h>
#import "F2DTexture.h"
#import "MathStructures.h"

@interface SpriteData : NSObject
{
@public
    NSString* name;
    CGRect rect;
}

@end

@interface F2DAtlas : NSObject
{
    F2DTexture* _texture;
    
    NSMutableDictionary* _sprites;
}

@property (nonatomic, strong) F2DTexture* texture;

- (id) initWithContentsOfFile:(NSString*)file texture:(F2DTexture*)texture;

- (SpriteData*) spriteDataFrom:(NSString*)sprite;

- (CGSize) size;

@end
